#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>

#define BUFSIZE 1024

int main(int argc, char *argv[]){ 
   

    char buf[BUFSIZE] = { 
   0};

    int r_fd = open("summary.txt", O_RDONLY);

    while (read(r_fd, buf, 33)) {
        printf("Read buf: %s\n", buf);    
    }
    
    printf("The strlen of buf: %ld\n", strlen(buf));
    return 0;
}
